<template>
  <div class="app">
    <!-- 一级路由出口 -->
    <router-view></router-view>
  </div>
</template>

<script>
import { mapActions } from 'vuex';
export default {
  methods: {
    ...mapActions('shop', ['getGoodsData'])
  },
  created() {
    this.getGoodsData()
  }
}
</script>

<style lang="scss" scoped>
.app {
  height: 100%;
  max-width: 10rem;
  margin: 0 auto;
}
</style>